﻿
@model ShivamEMR.Model.Domain.ContactsDomain.Contact
 

 
@*<script src="@Url.Content("~/Content/jquery.metro.js")" type="text/javascript"></script>*@
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>


@using (Ajax.BeginForm("NewContact", "Patient", null,
        new AjaxOptions
        {
          
            InsertionMode = InsertionMode.Replace,
            HttpMethod = "POST",
            OnSuccess = "updateSuccess"
        }, new { @id = "updateCarForm" }))
{
    @Html.ValidationSummary(true)
         <div id="update-message" class="error invisible"></div>
<div class='metro-pivot'>
<div class='pivot-item'>
     
        <table width="100%" cellpadding="4" cellspacing="4">

        <tr>
	<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.ContactType)
        </div>
</td>
<td>

        <div class="editor-field">
          @Html.DropDownListFor(model => model.ContactTypeID, ((IEnumerable<ShivamEMR.Model.Domain.ContactsDomain.ContactType>)ViewBag.PossibleContactTypes).Select(option => new SelectListItem
     {
         Text = (option == null ? "None" : option.Type),
         Value = option.ID.ToString(),
         Selected = (Model != null) && (option.ID == Model.ContactTypeID)
     }), "Choose...")
                            @Html.ValidationMessageFor(model => model.ContactTypeID)            
        </div>
</td>
     </tr>

@*		<tr>
<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>
</td>
    </tr>*@
    
    <tr>
	<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.Value, "Contact")
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.EditorFor(model => model.Value)
            @Html.ValidationMessageFor(model => model.Value)
        </div>
</td>

    </tr>
     <tr>
     <td>

        <div class="editor-label">
            @Html.LabelFor(model => model.Notes)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.EditorFor(model => model.Notes)
            @Html.ValidationMessageFor(model => model.Notes)
        </div>
</td>
     </tr>
     </table></div>     
   </div>
       
    
}
 
<script>
    $(function () {
        $("div.metro-pivot").metroPivot();
    });
</script>


